package com.qingkai.onlineshop.data.relations
import androidx.room.Embedded
import androidx.room.Relation
import com.qingkai.onlineshop.data.entity.CategoryEntity
import com.qingkai.onlineshop.data.entity.ItemEntity
import com.qingkai.onlineshop.data.entity.PicUrlEntity

data class ItemFull(
    @Embedded val item: ItemEntity,
    @Relation(
        parentColumn = "id",
        entityColumn = "itemId"
    )
    val pics: List<PicUrlEntity>,

    @Relation(
        parentColumn = "categoryId",
        entityColumn = "id"
    )
    val category: CategoryEntity
)